<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <link href="../css/element.css" rel="stylesheet"/>
    <link href="../css/styleindex.css" rel="stylesheet"/>
    <style>
    .layui-laydate{
      width: 100%!important;
    }.layui-laydate-main{
      width: 100%!important;
    }
    .layui-laydate-content table{
      width: 100%!important;
    }
    </style>
</head>
<body style="background:#EFF0F4;">

  <div class="mui-content">
    <div id="vm" class="x-examok" v-cloak>
      <!--  -->
      <div class="x-trtali-box" id="calali" style="margin:1rem"></div>
      <!--  -->
      <div class="x-btn-form x-sutyplancheck-btn" style="margin:0;">
        <div class="x-st-btn" @click="openin('indutysummary1','./indutysummary1.html')">
          <div class="x-stbtn-img x-induty-img1"></div>
          <div class="x-stbtn-tit">总结确认</div>
        </div>
        <!-- <div class="x-st-btn" @click="openin('indutysummary2','./indutysummary2.html')">
          <div class="x-stbtn-img x-induty-img2"></div>
          <div class="x-stbtn-tit">检查总结</div>
        </div> -->
        <div class="x-st-btn" @click="openin('indutysummary3','./indutysummary3.html')">
          <div class="x-stbtn-img x-induty-img3"></div>
          <div class="x-stbtn-tit">交接记录</div>
        </div>
        <div class="x-st-btn" @click="openin('indutysummary4','./indutysummary4.html')">
          <div class="x-stbtn-img x-induty-img4"></div>
          <div class="x-stbtn-tit">值班留言</div>
        </div>

      </div>
    </div>
  </div>

  <script type="text/javascript" src="../script/vue.js"></script>
  <script type="text/javascript" src="../script/element.js"></script>
  <script type="text/javascript" src="../script/api.js"></script>
  <script type="text/javascript" src="../script/base.js"></script>
  <script type="text/javascript" src="../script/laydate/laydate.js"></script>
	<script>
apiready = function () {
    $api.fixStatusBar($api.byId('header'));


    //
    var vm = new Vue({
      el:'#vm',
      data(){
        return{
          thmonth:'',
        }
      },
      created:function() {
        var that=this;


      },
      mounted:function(){
        var that=this;
        laydate.render({
          elem: '#calali',
          position: 'static',
          btns:['now'],
          format:'yyyyMMdd',
          // theme:'#058142',
          change:function(value,date){
            console.log(value);
            that.thmonth = value;
          }
        });
        //当前月份
        var date = new Date();
        var year = date.getFullYear();
        var month = date.getMonth()+1;
        var day = date.getDate()
        if(month<10){
          month = '' + 0 + month;
        }
        if(day<10){
          day = '' + 0 + day;
        }
        var toMonth = '' + year +  month +  day;
        that.thmonth = toMonth;

      },
      methods: {
        openin:function(name,url){
          var that = this;
          api.openWin({
              name: name,
              url: url,
              pageParam: {
                  date: that.thmonth
              }
          });
        },
      }
    })
	}


	</script>
</body>
</html>
